package com.kingyea.app.market.supplierAllocation.dao;

import com.kingyea.app.market.supplierAllocation.bean.SupplierAllocation;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author
 * @version v1.0.0
 * @description SupplierAllocationMapper
 * @date Created in 2018-02-09 17:48:58
 */
public interface SupplierAllocationMapper {

    /**
     * 通过ID获取对象
     */
    SupplierAllocation getById(@Param("id") Integer id);

    /**
     * 通过ID删除对象
     */
    void deleteById(@Param("id") Integer id);

    /**
     * 更新对象
     */
    void update(SupplierAllocation obj);

    /**
     * 保存对象
     */
    void save(List<Object> list);

    /**
     * 查询列表
     */
    List<Object> list(Map<String, Object> supplierAllocation);

    List<Object> getUserList(Map<String, Object> supplier);

    void deleteUser(@Param("supplierCode") String supplierCode, @Param("loginAccount") String loginAccount);

    List<Object> getMarketList(Map<String, Object> supplierCode);

    void deleteMarket(@Param("supplierCode") String supplierCode, @Param("marketCode") String marketCode);

    List<Object> getLinkSupplier(Map<String, Object> Supplier);

    void deleteSupplier(@Param("supplierCode") String supplierCode, @Param("linkSupplier") String linkSupplier);

    List<SupplierAllocation> getBySupplierCode(Integer supplierCode);

    List<SupplierAllocation> getByMarket(String marketCode);
}
